Skip to content

bugfix: use strict MariaDB detection in install advisor#273

Merged
TheWitness merged 1 commit intoCacti:developfrom
somethingwithproof:bug/mariadb-detection-strict
Mar 16, 2026
Merged

bugfix: use strict MariaDB detection in install advisor#273
TheWitness merged 1 commit intoCacti:developfrom
somethingwithproof:bug/mariadb-detection-strict

Conversation

@somethingwithproof
Copy link
Contributor

Summary

Fixes #270

Validation

  • php -l setup.php
  • php -l tests/regression/issue270_mariadb_detection_strict_test.php
  • php tests/regression/issue270_mariadb_detection_strict_test.php

Copilot AI review requested due to automatic review settings March 7, 2026 02:24
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Updates the Syslog plugin’s install advisor to correctly detect MariaDB by using a strict stripos() comparison, and adds a small regression test plus changelog entry to prevent reintroducing the issue (Fixes #270).

Changes:

  • Switch MariaDB detection from loose to strict stripos(...) === false comparison in the install advisor.
  • Add a regression test to ensure the strict comparison remains in setup.php.
  • Update CHANGELOG.md with the issue reference.

Reviewed changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated 3 comments.

File Description
setup.php Fixes MariaDB detection comparison used to gate Aria engine selection in the install advisor.
tests/regression/issue270_mariadb_detection_strict_test.php Adds a regression check to prevent reintroduction of the loose comparison.
CHANGELOG.md Documents the fix for issue #270.

@somethingwithproof
Copy link
Contributor Author

Fixed in e913ca3 -- now uses syslog_db_fetch_row() so the version check runs against the Syslog DB connection. The spelling was already correct in this branch.

@somethingwithproof somethingwithproof force-pushed the bug/mariadb-detection-strict branch 2 times, most recently from 0a110bf to 55e4c82 Compare March 10, 2026 20:30
somethingwithproof added a commit to somethingwithproof/plugin_syslog that referenced this pull request Mar 10, 2026
Refs Cacti#273

Signed-off-by: Thomas Vincent <thomasvincent@gmail.com>
@somethingwithproof somethingwithproof force-pushed the bug/mariadb-detection-strict branch from 55e4c82 to 8108b21 Compare March 10, 2026 20:55
somethingwithproof added a commit to somethingwithproof/plugin_syslog that referenced this pull request Mar 12, 2026
Refs Cacti#273

Signed-off-by: Thomas Vincent <thomasvincent@gmail.com>
@somethingwithproof somethingwithproof force-pushed the bug/mariadb-detection-strict branch from 8108b21 to 10663f9 Compare March 12, 2026 00:21
Refs Cacti#273

Signed-off-by: Thomas Vincent <thomasvincent@gmail.com>
@somethingwithproof somethingwithproof force-pushed the bug/mariadb-detection-strict branch from 10663f9 to f3c52ab Compare March 15, 2026 05:17
@TheWitness TheWitness merged commit 960186e into Cacti:develop Mar 16, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

bug: MariaDB detection uses loose stripos comparison in upgrade advisor

3 participants